Split magellan serial and file into different help texts.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 8 Mar 2004 15:44:28 +0000 (15:44 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 8 Mar 2004 15:44:28 +0000 (15:44 +0000)
gpsbabel/magproto.c

index 274a63d4dbc43f8c993c9ec6bed04f257883c8e3..aacbbaff3a4e25780859b5568f6cb35b06cf946d 100644 (file)
@@ -684,8 +684,11 @@ termwrite(char *obuf, int size)
 }
 #endif
 
+/*
+ *  Arg tables are doubled up so that -? can output appropriate help
+ */
 static
-arglist_t mag_args[] = {
+arglist_t mag_sargs[] = {
        {"baud", &bs, "Numeric value of bitrate (baud=4800)", ARGTYPE_INT },
        {"noack", &noack, "Suppress use of handshaking in name of speed",
                ARGTYPE_BOOL},
@@ -693,6 +696,12 @@ arglist_t mag_args[] = {
        {0, 0, 0, 0}
 };
 
+static
+arglist_t mag_fargs[] = {
+       {"deficon", &deficon, "Default icon name", ARGTYPE_STRING },
+       {0, 0, 0, 0}
+};
+
 static void
 mag_rd_init(const char *portname)
 {
@@ -1354,7 +1363,7 @@ ff_vecs_t mag_svecs = {
        mag_deinit,     
        mag_read,
        mag_write,
-       mag_args
+       mag_sargs
 };
 
 ff_vecs_t mag_fvecs = {
@@ -1365,5 +1374,5 @@ ff_vecs_t mag_fvecs = {
        mag_deinit,     
        mag_read,
        mag_write,
-       mag_args
+       mag_fargs
 };